﻿@model SchoolPointe.Menus.ViewModels.MenuViewModel

@{
    Style.Require("MenuEditor");
}


@if (Model.MenuId > 0)
{
    <div class="ui-widget-header ui-corner-top" style="padding: 10px; margin-left: 300px;">
        <div class="editor-label" style="float: left; margin-right: 10px; font-size: 14px; padding-top: 3px;">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field" style="float: left; margin-right: 10px;">
            @Html.TextBoxFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
            @Html.HiddenFor(model => model.MenuId)
        </div> 

        <fieldset class="save-button">
            <button class="ui-button ui-state-default" type="submit" name="submit.Save" value="submit.Save">@T("Save")</button>
        </fieldset>
        <div style="clear: both;"></div>         
    </div>
}
else
{
    <div>
        <div class="editor-label" style="float: left; margin-right: 10px; font-size: 14px; padding-top: 3px;">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field" style="float: left; margin-right: 10px;">
            @Html.TextBoxFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
            @Html.HiddenFor(model => model.MenuId)
        </div> 

        <fieldset class="save-button">
            <button class="ui-button ui-state-default" type="submit" name="submit.Save" value="submit.Save">@T("Save")</button>
        </fieldset>
        <div style="clear: both;"></div>         
    </div>
}